﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 关卡数据管理
/// </summary>
public class LevelDataManager : MonoBehaviour
{
    [Header("关卡数据")]
    public List<Level> levels;
}


/// <summary>
/// 关卡
/// </summary>
[System.Serializable]
public class Level
{
    [Header("关卡数据")]
    public int name = 1;
    public TileCreateType createType;
    public List<int> tileTypeNum = new List<int> { 1, 1, 1, 1, 1, 1, 1 };
    [Header("底层行数")]
    public List<TileRow> createRows;
    [Header("额外方块类型")]
    public List<ExtraTile> extraTile;
}

/// <summary>
/// 方块行数
/// </summary>
[System.Serializable]
public class TileRow
{
    // 方块点位
    public List<Vector2> TilePos;
}

/// <summary>
/// 额外的方块类型
/// </summary>
[System.Serializable]
public class ExtraTile
{
    // 方块生成类型
    public TileCreateType createType;
    public int createNum = 1;
    // 方块点位
    public List<Vector2> TilePos;
}


